package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TeamSysinfoAdminMapper;
import com.ruoyi.system.domain.TeamSysinfoAdmin;
import com.ruoyi.system.service.ITeamSysinfoAdminService;
import com.ruoyi.common.core.text.Convert;

/**
 * 系统负责人Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-14
 */
@Service
public class TeamSysinfoAdminServiceImpl implements ITeamSysinfoAdminService 
{
    @Autowired
    private TeamSysinfoAdminMapper teamSysinfoAdminMapper;

    /**
     * 查询系统负责人
     * 
     * @param sysId 系统负责人主键
     * @return 系统负责人
     */
    @Override
    public TeamSysinfoAdmin selectTeamSysinfoAdminBySysId(String sysId)
    {
        return teamSysinfoAdminMapper.selectTeamSysinfoAdminBySysId(sysId);
    }

    /**
     * 查询系统负责人列表
     * 
     * @param teamSysinfoAdmin 系统负责人
     * @return 系统负责人
     */
    @Override
    public List<TeamSysinfoAdmin> selectTeamSysinfoAdminList(TeamSysinfoAdmin teamSysinfoAdmin)
    {
        return teamSysinfoAdminMapper.selectTeamSysinfoAdminList(teamSysinfoAdmin);
    }

    /**
     * 新增系统负责人
     * 
     * @param teamSysinfoAdmin 系统负责人
     * @return 结果
     */
    @Override
    public int insertTeamSysinfoAdmin(TeamSysinfoAdmin teamSysinfoAdmin)
    {
        return teamSysinfoAdminMapper.insertTeamSysinfoAdmin(teamSysinfoAdmin);
    }

    /**
     * 修改系统负责人
     * 
     * @param teamSysinfoAdmin 系统负责人
     * @return 结果
     */
    @Override
    public int updateTeamSysinfoAdmin(TeamSysinfoAdmin teamSysinfoAdmin)
    {
        return teamSysinfoAdminMapper.updateTeamSysinfoAdmin(teamSysinfoAdmin);
    }

    /**
     * 批量删除系统负责人
     * 
     * @param sysIds 需要删除的系统负责人主键
     * @return 结果
     */
    @Override
    public int deleteTeamSysinfoAdminBySysIds(String sysIds)
    {
        return teamSysinfoAdminMapper.deleteTeamSysinfoAdminBySysIds(Convert.toStrArray(sysIds));
    }

    /**
     * 删除系统负责人信息
     * 
     * @param sysId 系统负责人主键
     * @return 结果
     */
    @Override
    public int deleteTeamSysinfoAdminBySysId(String sysId)
    {
        return teamSysinfoAdminMapper.deleteTeamSysinfoAdminBySysId(sysId);
    }
}
